package com.xhh.nphm.system.service.impl;

import com.xhh.nphm.system.domain.AfficheComment;
import com.xhh.nphm.system.mapper.CommentDao;
import com.xhh.nphm.system.service.CommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
 * @description: 评论实现类
 * @author: 25387
 * @date: 2022/12/30 16:48
 * @version 1.0
 */
@Service
public class CommentServiceImpl implements CommentService {
    @Autowired
    CommentDao commentDao;

    @Override
    public Boolean addComment(AfficheComment afficheComment) {
        return commentDao.insert(afficheComment) > 0;
    }

    @Override
    public Boolean deleteComment(Integer commentId) {
        return commentDao.updateByAfficheId(commentId);
    }
}
